/*
 * @Author: 陈心怡
 * @Date: 2024-09-20 14:16:11
 * @LastEditors: 陈心怡
 * @LastEditTime: 2024-09-20 14:21:20
 * @FilePath: \vue3-web-study\src\api\news.js
 * @Description:
 */
import request from '../utils/request'

export function getNewsList(data) {
  return request('/newslist', 'get', data)
}

export function getNewsDetail(id) {
  return request(`/news/${id}`, 'get')
}
